{include file="common/header.tpl"}
<section class="main">	
    <article class="right-col">
    	<h2><a href="{$samrty.const.HOST_BACKEND}index">{$language.title.stadium}</a> &raquo; {$language.ahref.edit}</h2>
        <form name="frmAdd" id="frmAdd" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}stadium/saveedit" class="ui">        	
           <input type="hidden" class="text" name="clubsid" id="clubsid" value="{$row.clubid}" autocomplete="false" />
           <input type="hidden" class="text" name="stadiumid" id="stadiumid" value="{$row.stadiumid}" autocomplete="false" />
            <ul>
            	{if isset($smarty.session.STADIUM_ERROR)}
                	<li class="error">
                    	{include file="common/error.tpl" errors=$smarty.session.STADIUM_ERROR}
                    </li>
                {/if}            	
                <li>
                	<label for="pname">{$language.label.name}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="pname" id="pname" value="{if isset($smarty.session.STADIUM_POST.pname)}{$smarty.session.STADIUM_POST.pname|escape}{else}{$row.name}{/if}" autocomplete="false" />
                	</div>
                </li>
               
                <li>
                	<label for="pshort">{$language.label.short}:</label>
                    <div class="area">
                        <textarea rows="5" cols="50" name="pshort"  id="pshort">{if isset($smarty.session.STADIUM_POST.pshort)}{$smarty.session.STADIUM_POST.pshort|escape}{else}{$row.short}{/if}</textarea>	                	
                	</div>
                </li>
               
                <li>
                	<label for="pdescription">{$language.label.description}:</label>
                    <div class="area">                        
                         <textarea rows="5" cols="50" name="pdescription" id="pdescription">{if isset($smarty.session.STADIUM_POST.pdescription)}{$smarty.session.STADIUM_POST.pdescription|escape}{else}{$row.description}{/if}</textarea>	                	                                    	
                	</div>
                </li>
                 <!--<li>
                	<label for="pname">{$language.label.active}:</label>
                   <div class="hint"><input type="checkbox"	 class="text" name="pactive" id="pactive" {if !isset($smarty.session.STADIUM_POST.pactive) || $smarty.session.STADIUM_POST.pactive == '1'}checked="checked"{/if} value="1" autocomplete="false" /></div>
                </li>-->
                <li>
                	<label for="popen">{$language.label.opendate}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="popen" id="popen" value="{if isset($smarty.session.STADIUM_POST.popen)}{$smarty.session.STADIUM_POST.popen|escape}{else}{$dateOpen}{/if}" autocomplete="false" />
                	</div>
                </li>
                 <li>
                	<label for="pclosed">{$language.label.closedate}:</label>
                    <div class="txt">
	                	<input type="text" class="text" value="{if isset($smarty.session.STADIUM_POST.pclosed)}{$smarty.session.STADIUM_POST.pclosed|escape}{else}{$dateClose}{/if}" name="pclosed" id="pclosed" value="" autocomplete="false" />
                	</div>
                </li>
                              
                <li>
                 	<button type="submit"><strong>{$language.btn.save}</strong></button>
                    <button type="button" class="cancel" onclick="javascript:document.location.href='{$back}'"><strong>{$language.btn.cancel}</strong></button>
                </li>
            </ul>
        </form>
    </article> 
</section>
{include file="common/footer.tpl"}
                
